


public class Test {
    public static void main2(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addLast(1);
        myLinkedList.display();
        myLinkedList.remove(1);
        System.out.println("==================");
        myLinkedList.display();


    }


    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addFirst(1);
        myLinkedList.addFirst(20);
        myLinkedList.addFirst(30);
        myLinkedList.addFirst(20);
        myLinkedList.addFirst(1);
        myLinkedList.addLast(1);
        myLinkedList.addLast(1);
        myLinkedList.addLast(1);
        myLinkedList.addLast(1);
        myLinkedList.addLast(50);
        myLinkedList.display();
        myLinkedList.remove(50);
        //myLinkedList.removeAllKey(1);
        System.out.println("=================");
        myLinkedList.display();


        /*System.out.println(myLinkedList.size());
        System.out.println(myLinkedList.contains(5));
        System.out.println("===================");
        //myLinkedList.clear();
        myLinkedList.display();
        myLinkedList.addIndex(5,666);
        myLinkedList.display();*/

    }



}
